package com.sxt.jt808.handler;

import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import com.sxt.jt808.dto.LocationMsg;


/**
 * @Author: 罗林
 * @Date: 2019-05-15
 * @Description: 位置消息->CommonResp
 * @Version: 1.0
 */

@Slf4j
@Component
public class LocationMsgHandler extends BaseHandler {
    
  /**
   * 	读取数据
   */
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
    	LocationMsg locationMsg = (LocationMsg) msg;
    	System.out.println(locationMsg.toString());
        log.debug(locationMsg.toString());
    }
}
